Currently, only CodeWarrior 1.6 (CD9) project files are supplied for WSAPI support because the WSAPI library files are only available in CodeWarrior format.
Use the "grant-wsapi-68k.µ" and/or the "grant-wsapi.µ" project file(s).
Add any additional source files and libraries you need.
Other than the name settings specified in the following section of this document, you shouldn't need to change any of the project Preference settings.
Build the plug-in and follow the WSAPI instructions for installation and testing.
Naming Your Plug-In
In the project preferences, the name is generally all lowercase, except when specified for string constants as in the configuration header.
PowerPC:
In the Preferences window:
Set the "File Name" in 'Project': 'PPC Project', and the "Fragment Name" in 'Linker': 'PPC PEF' to be the name of your plug-in (use exactly the same spelling for both, case-sensitive).
68K:
In the Preferences window:
Set the "Project Name" and "Resource Name" fields of the "68K Project" panel to be the name of your plug-in (use exactly the same spelling for both, case-sensitive). Set the "Sym Name" to be the name of your plug-in plus the extension ".SYM".
In "MyConfiguration.h", it's generally advisable to use the same name (except all in uppercase) for the 'kMyCGIName' constant.
You should probably make the project file name match the plug-in name.
Modifying Existing Grant's CGI Code for WSAPI Support
There are a few changes you'll have to make in order to upgrade old code to support this new version of the framework. Please refer to the "Version History" document for details.
Calling WSAPI Functions Directly
If you want to use any of the WSAPI functions that are not yet directly supported by Grant's CGI Framework, you will need to use the 'kCompilingForWSAPI' constant so your WSAPI specific code doesn't cause problems when compiling as an AppleEvent CGI application.
The 'kCompilingForWSAPI' constant is defined in "grants-application.h" or "grants-wsapi.h", depending on which project you are compiling. Those headers are automatically included in the project files provided with the framework.
____________________
StarNine, and WebSTAR are trademarks of StarNine Technologies, Inc.
CodeWarrior is a trademark of Metrowerks Inc.
Symantec is a trademark of Symantec Corporation.
Grant's CGI Framework is a trademark of Grant Neufeld.